package org.mech.sefer.client.ui.task;

import org.apache.pivot.util.concurrent.Task;
import org.mech.sefer.client.ui.task.callback.TaskCallback;

/**
 * <p>
 * The TaskConfig is wrapper interface to provide both task and callback.
 * </p>
 * <p>
 * Date: 25.4.2012 8:38:26
 * </p>
 * 
 * @param <T>
 *            the generic type of result
 * @author martin.krajc
 */
public interface TaskConfig<T> {
	
	/**
	 * Gets the task.
	 *
	 * @return the task
	 */
	Task<T> getTask();

	/**
	 * Gets the callback for task
	 *
	 * @return the callback
	 */
	TaskCallback<T> getCallback();
}
